package org.yaglyf.rest.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.session.web.http.SessionRepositoryFilter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import javax.servlet.Filter;

/**
 * Created by yaq on 2016/9/5.
 */
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {

    @Bean
    public Filter httpSession(SessionRepositoryFilter sessionRepositoryFilter){
        return sessionRepositoryFilter;
    }





}
